package com.rlz.framemm.viewmodel;

import android.app.Application;

import com.rlz.base.base.BaseViewModel;
import com.rlz.base.base.Resource;
import com.rlz.framemm.bean.ArticleBean;
import com.rlz.framemm.model.ListModel;
import com.rlz.net.NetParams;

import androidx.annotation.NonNull;
import androidx.lifecycle.LiveData;

/**
 * Created by RLZ
 * on 2021/4/8
 */
public class ListViewModel extends BaseViewModel<ListModel> {

    public ListViewModel(@NonNull Application application) {
        super(application);
    }

    public LiveData<Resource<ArticleBean>> getArticleList(int curPage, NetParams netParams) {
        return mRepository.getArticleList(curPage,netParams);
    }
}
